org.zkoss.zul.Filedownload.contentTypeAsIs

From Documentation


org.zkoss.zul.Filedownload.contentTypeAsIs


Property:

org.zkoss.zul.Filedownload.contentTypeAsIs
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png not as <custom-attribute>
Default: false

Since 9.5.1

It specifies whether to treat the Content-Type as is in Filedownload class.

By default, ZK will append ;charset=UTF-8 in the Content-Type to ensure everything is displayed in UTF-8. But in some cases, you don't want ZK to add this in a binary file or you want to specify another charset. Enable this property and ZK will respect what you set in the Content-Type and use it as is.

See: ZK-4418



Last Update : 2020/10/27

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.